package com.roamer.audition.server.repository;

import com.roamer.audition.server.entity.AuditionRecord;
import com.roamer.audition.server.repository.base.LogicDeleteRepository;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 面试计划 存储库
 *
 * @author roamer
 * @version V1.0
 * @date 2019-08-20 22:51
 */
@Repository
public interface AuditionRecordRepository extends LogicDeleteRepository<AuditionRecord, Long> {

    /**
     * 查询列表
     *
     * @param specification 动态条件
     *
     * @return {@code List<AuditionRecord>}
     */
    @Override
    @EntityGraph(value = "auditionRecord.all", type = EntityGraph.EntityGraphType.FETCH)
    List<AuditionRecord> findAll(Specification<AuditionRecord> specification);
}
